class Function < ActiveRecord::Base 
  has_many(:folder_content)
  has_many(:folder, :through => :folder_content)

  def belongs_to_folder?(fid)
    return false if fid.nil?
    folder.each{|fldr| return true if fldr.id == fid }
    return false
  end
end
